package com.eliota.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.eliota.common.DateString;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author MG
 * @since 2023-04-05
 */
@Getter
@Setter
@TableName("project_device")
@ApiModel(value = "ProjectDevice对象", description = "")
public class ProjectDevice implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("设备id")
      private Integer deviceId;

      @ApiModelProperty("项目id")
      private Integer projectId;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("状态（1:正在使用，0：已归还）")
      private Integer status;

      @ApiModelProperty("借用时间")
     /* @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")*/
      private LocalDateTime startTime;

      @ApiModelProperty("归还时间")
      /*@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")*/
      private LocalDateTime endTime;

      @ApiModelProperty("设备名称")
      @TableField(exist = false)
      private String name;


      @ApiModelProperty("用户名")
      @TableField(exist = false)
      private String userName;

      @ApiModelProperty("用户名")
      @TableField(exist = false)
      private String borrowStatus;

      @ApiModelProperty("num")
      @TableField(exist = false)
      private String num;



}
